import java.util.Calendar;

/** BPDU Class
    CS158A Spring 2010 Project #2
    @author Clare Lanam and Loc Phan
    */

public class BPDU
{
   /** id of the sender bridge */
   public final String SENDER;
   /** id of what the sending bridge thinks is the root */
   public final String ROOT;
   /** path cost from sender to root */
   public final int PATH_COST;
   /** time generated / last heard from root */
   public final Calendar LAST_ROOT_UPDATE;
   
   // ------[CONSTRUCTOR]------ //
   
   public BPDU(String sender, String root,
         int pathCost, Calendar lastRootUpdate)
   {
      SENDER = sender;
      ROOT = root;
      PATH_COST = pathCost;
      LAST_ROOT_UPDATE = lastRootUpdate;
   }
}
